import javax.swing.plaf.synth.SynthLookAndFeel;
import java.util.Scanner;

public class L2 {
    public static void main(String []args){
        Scanner in= new Scanner (System.in);


        System.out.println("输入密码：" );
        String num1=in.nextLine();

        System.out.println("确定密码：" );
        String num2=in.nextLine();1
        if(num1.equals(num2)){
            System.out.println("输入正确。");
        }else{
            System.out.println("密码不一致，请重新输入。");
        }
        System.out.println("程序结束。");
    }
}
